package com.zenchn.entity;


import com.zenchn.model.TSysAuthority;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * TSysAuthorityVO：
 *
 * @author dingxinfa
 * @date 2020-04-16 10:22
 */
@ApiModel(value="系统权限扩展对象",description="系统权限对象")
public class TSysAuthorityVO extends TSysAuthority {

	private static final long serialVersionUID = -3495169276093364330L;
	
	@ApiModelProperty(value="上级权限名称")
	private String  parentAuthName;

	@ApiModelProperty(value="权限客户端名称")
	private String  oauthClientName;

	@ApiModelProperty(value="权限类型名称")
	private String  authTypeName;

	@ApiModelProperty(value="当前权限子集")
	private List<TSysAuthorityVO> children;


	public String getParentAuthName() {
		return parentAuthName;
	}

	public void setParentAuthName(String parentAuthName) {
		this.parentAuthName = parentAuthName;
	}


	public String getOauthClientName() {
		return oauthClientName;
	}

	public void setOauthClientName(String oauthClientName) {
		this.oauthClientName = oauthClientName;
	}

	public List<TSysAuthorityVO> getChildren() {
		return children;
	}

	public void setChildren(List<TSysAuthorityVO> children) {
		this.children =  children!=null?children:new ArrayList<>();
	}

	public String getAuthTypeName() {
		return authTypeName;
	}

	public void setAuthTypeName(String authTypeName) {
		this.authTypeName = authTypeName;
	}

	@Override
	public String toString() {
		return "TSysAuthorityVO{" +
				"parentAuthName='" + parentAuthName + '\'' +
				", oauthClientName='" + oauthClientName + '\'' +
				", authTypeName='" + authTypeName + '\'' +
				", children=" + children +
				'}';
	}
}
